package com.ymttest.database.mapping.godmch;

import com.ymttest.database.model.godmch.point_change_detail;
import com.ymttest.database.model.godmch.point_change_detailExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface point_change_detailMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_detail
     *
     * @mbggenerated Fri Aug 14 16:12:26 CST 2020
     */
    @SelectProvider(type=point_change_detailSqlProvider.class, method="countByExample")
    int countByExample(point_change_detailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_detail
     *
     * @mbggenerated Fri Aug 14 16:12:26 CST 2020
     */
    @DeleteProvider(type=point_change_detailSqlProvider.class, method="deleteByExample")
    int deleteByExample(point_change_detailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_detail
     *
     * @mbggenerated Fri Aug 14 16:12:26 CST 2020
     */
    @Delete({
        "delete from point_change_detail",
        "where change_detail_id = #{change_detail_id,jdbcType=INTEGER}"
    })
    int deleteByPrimaryKey(Integer change_detail_id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_detail
     *
     * @mbggenerated Fri Aug 14 16:12:26 CST 2020
     */
    @Insert({
        "insert into point_change_detail (change_detail_id, user_id, ",
        "platform_mch_id, point_value, ",
        "change_type_id, remark, ",
        "create_time)",
        "values (#{change_detail_id,jdbcType=INTEGER}, #{user_id,jdbcType=INTEGER}, ",
        "#{platform_mch_id,jdbcType=INTEGER}, #{point_value,jdbcType=INTEGER}, ",
        "#{change_type_id,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}, ",
        "#{create_time,jdbcType=TIMESTAMP})"
    })
    int insert(point_change_detail record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_detail
     *
     * @mbggenerated Fri Aug 14 16:12:26 CST 2020
     */
    @InsertProvider(type=point_change_detailSqlProvider.class, method="insertSelective")
    int insertSelective(point_change_detail record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_detail
     *
     * @mbggenerated Fri Aug 14 16:12:26 CST 2020
     */
    @SelectProvider(type=point_change_detailSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="change_detail_id", property="change_detail_id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="user_id", property="user_id", jdbcType=JdbcType.INTEGER),
        @Result(column="platform_mch_id", property="platform_mch_id", jdbcType=JdbcType.INTEGER),
        @Result(column="point_value", property="point_value", jdbcType=JdbcType.INTEGER),
        @Result(column="change_type_id", property="change_type_id", jdbcType=JdbcType.INTEGER),
        @Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="create_time", jdbcType=JdbcType.TIMESTAMP)
    })
    List<point_change_detail> selectByExample(point_change_detailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_detail
     *
     * @mbggenerated Fri Aug 14 16:12:26 CST 2020
     */
    @Select({
        "select",
        "change_detail_id, user_id, platform_mch_id, point_value, change_type_id, remark, ",
        "create_time",
        "from point_change_detail",
        "where change_detail_id = #{change_detail_id,jdbcType=INTEGER}"
    })
    @Results({
        @Result(column="change_detail_id", property="change_detail_id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="user_id", property="user_id", jdbcType=JdbcType.INTEGER),
        @Result(column="platform_mch_id", property="platform_mch_id", jdbcType=JdbcType.INTEGER),
        @Result(column="point_value", property="point_value", jdbcType=JdbcType.INTEGER),
        @Result(column="change_type_id", property="change_type_id", jdbcType=JdbcType.INTEGER),
        @Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="create_time", jdbcType=JdbcType.TIMESTAMP)
    })
    point_change_detail selectByPrimaryKey(Integer change_detail_id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_detail
     *
     * @mbggenerated Fri Aug 14 16:12:26 CST 2020
     */
    @UpdateProvider(type=point_change_detailSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") point_change_detail record, @Param("example") point_change_detailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_detail
     *
     * @mbggenerated Fri Aug 14 16:12:26 CST 2020
     */
    @UpdateProvider(type=point_change_detailSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") point_change_detail record, @Param("example") point_change_detailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_detail
     *
     * @mbggenerated Fri Aug 14 16:12:26 CST 2020
     */
    @UpdateProvider(type=point_change_detailSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(point_change_detail record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_detail
     *
     * @mbggenerated Fri Aug 14 16:12:26 CST 2020
     */
    @Update({
        "update point_change_detail",
        "set user_id = #{user_id,jdbcType=INTEGER},",
          "platform_mch_id = #{platform_mch_id,jdbcType=INTEGER},",
          "point_value = #{point_value,jdbcType=INTEGER},",
          "change_type_id = #{change_type_id,jdbcType=INTEGER},",
          "remark = #{remark,jdbcType=VARCHAR},",
          "create_time = #{create_time,jdbcType=TIMESTAMP}",
        "where change_detail_id = #{change_detail_id,jdbcType=INTEGER}"
    })
    int updateByPrimaryKey(point_change_detail record);
}